﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EBA.Localization;

namespace EBA.Reporting
{
    /// <summary>
    /// 描述指定的报表模版不存在。
    /// </summary>
    [Serializable]
    public class ReportTemplateNotFoundException : Exception
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public ReportTemplateNotFoundException() { }

        /// <summary>
        /// 构造函数
        /// </summary>
        public ReportTemplateNotFoundException(string templateId) : base("The report template[{0}] not found.".T(templateId)) { }

        /// <summary>
        /// 构造函数
        /// </summary>
        public ReportTemplateNotFoundException(string message, Exception inner) : base(message, inner) { }

        /// <summary>
        /// 构造函数
        /// </summary>
        protected ReportTemplateNotFoundException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }
    }
}
